package com.city.service.pub.impl;

import com.city.domain.pub.PubLogUserLogin;
import com.city.repository.pub.PubLogUserLoginRepository;
import com.city.service.pub.PubLoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @deprecation: 用户登陆服务
 * @email: leichuqiao@126.com
 * @author: 雷楚桥
 * @date: 2018/7/22 18:20
 */
@Service
public class PubLoginServiceImpl implements PubLoginService {

    @Autowired
    private PubLogUserLoginRepository pubLogUserLoginRepository;

    /**
     * @deprecation 保存用户登陆记录
     * @params pubLogUserLogin PubLogUserLogin 记录
     * @return PubLogUserLogin 保存后的登陆记录
     * @author 雷楚桥
     * @date 2018/7/22 18:33
     */
    @Override
    public PubLogUserLogin saveLogUserLogin(PubLogUserLogin pubLogUserLogin) {
        return pubLogUserLoginRepository.save(pubLogUserLogin);
    }
}
